﻿<%@ Page Title="DanhSachSanPhamSapBan" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="DanhSachSanPhamSapBan.aspx.cs" Inherits="LayoutTemplate.DanhSachSanPhamSapBan" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<style type="text/css">
.newStyle1 {
	width: 400px;
	height: 300px;
	float: left;
}

.Image 
{
	width: 200px;
	height: 200px;
}

.Link 
{
	width: 200px;
	height: 25px;
}
</style>
	<div class="newStyle1">
<% System.Collections.Generic.List<DAO_DTO_WS.DTO.SanPhamDTO> dsSanPham = new System.Collections.Generic.List<DAO_DTO_WS.DTO.SanPhamDTO>();
   dsSanPham = DAO_DTO_WS.DAO.SanPhamDAO.layDSSanPham();
   int count = dsSanPham.Count;
   	 for (int i = 0; i < count; ++i)
    {
         if (DateTime.Now.DayOfYear < dsSanPham[i].ThoiGianBatDau.DayOfYear)
            Response.Write("<div><a href=\"XemChiTietSanPham.aspx?id="
            + dsSanPham[i].MaSanPham.ToString() + "\">Xem chi tiet</a></div>"); 
		
	} %>
</div>
</asp:Content>
